package com.hurt.competition.admin.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hurt.competition.admin.dto.StudentReq;
import com.hurt.competition.admin.mapper.StudentMapper;
import com.hurt.competition.admin.service.StudentService;
import com.hurt.competition.player.service.CompetitionJudgePlayerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentServiceImpl implements StudentService{
    @Autowired
    private StudentMapper studentMapper;


    @Override
    public IPage<StudentReq> findAll(Page<StudentReq> page) {
        return studentMapper.findAll(page);
    }
    @Override
    public StudentReq findById(Integer id){
        return studentMapper.findById(id);
    }
    @Override
    public int deleteById(Integer id){
        return studentMapper.deleteById(id);
    }
    @Override
    public int update(StudentReq student){
        return studentMapper.update(student);
    }
}
